<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
boolean rememberme;
String cookieuserName=null;
String cookieuserPassword=null;
Cookie cookies [] = request.getCookies ();
for(int i =0 ;i<cookies.length;i++)
{
   Cookie temp = (Cookie)cookies[i];
   if((temp.getName().compareTo("UserName")==0))
	{
	   cookieuserName = temp.getValue();
	}
	if((temp.getName().compareTo("Password")==0))
	{
	  cookieuserPassword = temp.getValue();
	}
}


%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">	

	
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <link href="jsp/web/css.css" rel="stylesheet" type="text/css">

<link href="css.css" rel="stylesheet" type="text/css">
  </head>
<body>
  <base href="<%=basePath%>">
   <base href="<%=basePath%>">
<html:form action="sampleActions.do">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr align="left" valign="top" bgcolor="#FFFFFF">
    <td bgcolor="#CCCCCC">&nbsp;</td>
    <td bordercolor="#FFFFFF" bgcolor="#CCCCCC">&nbsp;</td>
    <td bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
  <tr align="left" valign="top" bgcolor="#FFFFFF">
    <td bgcolor="#CCCCCC">&nbsp;</td>
    <td bordercolor="#FFFFFF"><table border="0" cellpadding="3" cellspacing="0" bordercolor="#000000">
        <tr>
          <td><table align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="1039" colspan="2" align="left" valign="top"><img src="jsp/web/image/img_header.jpg" width="770" height="1"></td>
              </tr>
              <tr>
                <td colspan="2" align="left" valign="top">
                  <%@ include file="header1.jsp"  %>
                </td>
              </tr>
              <tr>
                <td colspan="2" align="left" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr align="left" valign="top">
                      <td><span class="title1"><img src="jsp/web/image/img_t_width_differ.jpg" width="130" height="4"></span></td>
                      <td><table border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="3" align="left" valign="top">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top"><div align="left"><img src="jsp/web/image/img_login.jpg" width="154" height="55"></div></td>
                            <td colspan="3" align="left" valign="top">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="3" align="left" valign="top">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="3" align="left" valign="top"><logic:equal value="false" name="sampleForm" property="status"> <bean:message key="Login.InActiveUser"/> </logic:equal> </td>
                          </tr>
                          <tr>
                            <td width="144" align="left" valign="top" class="username">User name: </td>
                            <td width="12" align="center" valign="middle" class="black_blod"><img src="jsp/web/image/img_star.jpg" width="5" height="6"></td>
                            <td colspan="3" align="left" valign="middle"> <html:text property="userName" size="35" value="<%= cookieuserName %>"></html:text></td>
                          </tr>
                          <tr>
                            <td align="left" valign="middle" class="username">Password:</td>
                            <td align="center" valign="middle" class="black_blod"><img src="jsp/web/image/img_star.jpg" width="5" height="6"></td>
                            <td height="50" colspan="3" align="left" valign="middle"><html:password property="userPassword" size="35" value="<%= cookieuserPassword %>"></html:password></td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="3" align="left" valign="middle"><%if(cookies.length >1) {%>
                                <input type=checkbox id="remembercheckbox" name="remembercheckbox" checked="true"/>
                                <%} else {%>
                                <input type=checkbox id="remembercheckbox" name="remembercheckbox2"/>
                                <% } %>
&nbsp;Remember me on this machine. </td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="3" align="left" valign="middle" class="far_black"><a href="jsp/web/Forgot_password_1.jsp" class="login_b-l">Forgot password?</a></td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="3" align="left" valign="middle" class="far_black"><a href="jsp/web/Forgot_password_1.jsp" class="login_b-l"><b>Don't have an account? Signup is easy</b></a></td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="3" align="left" valign="middle" class="far_black">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td width="4" align="left" valign="middle">&nbsp;</td>
                            <td width="86" align="left" valign="middle">&nbsp;</td>
                            <td width="216" align="left" valign="middle" class="login_b-l"></td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td><a class="button" href="#"><span class="buttonlong"><b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Login&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b></span></a></td>
                                </tr>
                            </table></td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2" align="left" valign="top">&nbsp;</td>
                            <td colspan="2" align="left" valign="top"><span class="login_b-t"> </span></td>
                            <td align="left" valign="top" class="login_b-t">&nbsp;</td>
                          </tr>
                      </table></td>
                      <td><span class="title1"><img src="jsp/web/image/img_t_width_differ.jpg" width="130" height="4"></span></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td colspan="2" align="left" valign="top"><iframe src="jsp/web/footer1.jsp" width="100%" height="85"
scrolling="no"
marginwidth="0" marginheight="0" frameborder="0"> </iframe></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
    <td bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
  <tr align="left" valign="top" bgcolor="#FFFFFF">
    <td width="50%" bgcolor="#CCCCCC">&nbsp;</td>
    <td bordercolor="#FFFFFF" bgcolor="#CCCCCC">&nbsp;</td>
    <td width="50%" bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
</table>
</html:form>
</body>
</html>
